package com.glink.manage.dto.code;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class CodeSubCodeUpdateDTO {

    @ApiModelProperty(value = "代码ID", required = true)
    @NotBlank(message = "代码ID不能为空")
    private String id;

    @ApiModelProperty(value = "字典名字", required = true)
    @NotBlank(message = "代码名不能为空")
    @Size(max = 250, message = "字典名字不能超过250个字符")
    private String name;

    @ApiModelProperty(value = "字典说明")
    private String remark;

    @ApiModelProperty(value = "代码值", required = true)
    @NotBlank(message = "代码值不能为空")
    @Size(max = 36, message = "代码值不能超过36个字符")
    private String key;
}
